#include "mypath.h"
#include <wx/filename.h>


void MyPath::SetBasePath(const wxString &path)
{
	bpath = path;
#ifdef __LINUX__
	SetInstallPrefix(path);
#endif
}
wxString MyPath::GetSharedDir() const
{
		return GetDataDir();
}
wxString MyPath::GetSettingDir() const
{
	if (isnoinstall) {
		return GetDataDir();
	}else{
		return GetUserDataDir();
	}
}
wxString MyPath::GetApplicationDir() const
{
	wxFileName fname;
	fname.Assign(GetExecutablePath());
	return fname.GetPath();
}
